Page({
  data:{
    notifyDetail:{},
  },
onLoad({id}){
  this.getNotifyDetail(id)
},
async getNotifyDetail(id){
  if(!id) return wx.utils.toast('缺少必要参数')
  const {code,data:notifyDetail}=await wx.http.get(`/announcement/${id}`)
  if(code!==10000)return wx.utils.toast('获取公告详情失败...')
  this.setData({notifyDetail})
}
})